<script type="text/javascript">
	$menu =
	{
		edit : function(e) {
			var text, json, li;
			li = $(e).parent('li');
			text = li.attr('data');
			text = decodeURIComponent(text);
			json = $.parseJSON(text);

			_.ui.fbox(
			{
				url :_config.basePath + 'admin/appearance/menu/item/edit',
				data: json
			});
		},
		remove : function(e) {
			var text, json, li;
			li = $(e).parent('li');
			text = li.attr('data');
			text = decodeURIComponent(text);
			json = $.parseJSON(text);
			console.log(json);
		}
	}; 
</script>

<?php echo Menu::factory($menu_name) -> renderConfigure(); ?>
